<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <link href="css/norm.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url(images/bg.gif);
}
-->
</style>
  	<TITLE>WordSparrow</TITLE>
	<link rel="stylesheet" type="text/css" href="css/extremecomponents.css">
	<SCRIPT type="text/javascript">
	function modifyUser(value) {
	        //var bln = window.confirm("确定要修改吗？", "确定", "取消");
	        //if(bln == true) {
	        var page=document.all.ec_p.value;
			url = "researcher.htm?action=tomodify&flag=mod&ids=" + value+"&page="+page+"&method=register";
			document.location.href = url;
			//}
		}
	</SCRIPT>
</head>
  
  <body>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#FFFFFF" class="gj">
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="22" align="left"><img src="images/arrow2.gif" width="22" height="20"></td>
                    <td bgcolor="#7AAED6" class="normtit">科研人员</td>
                    <td width="8" align="right"><img src="images/arrow3.gif" width="8" height="20"></td>
                  </tr>
                </table>              
    <ec:table 
  		items="list"
  		var="res"
  		action="${pageContext.request.contextPath}/researcher.htm"
  		imagePath="${pageContext.request.contextPath}/images/table/compact/*.gif"
  		title="科研人员列表<br><br><font color=\"red\">
  		提示：请在人员列表中选择属于您的记录，并更新个人信息;如没有与您的信息相符的记录，请注册您的帐号;</font>"
  		view="compact"
  		rowsDisplayed="10">
  		<ec:exportXls
           fileName="output.xls" 
           tooltip="Export Excel"
           text="XLS"
           />
  		<ec:row highlightRow="true">
   			<ec:column property="modify" title="修改" filterable="false" sortable="false">
   			<a href="#" onclick="modifyUser('<c:out value='${res.ids}'/>');"><img src="images/modify.gif"/></a>
            </ec:column>        
  		    <ec:column property="ida" title="ID" filterable="false" sortable="false"/>
   			<ec:column property="name" title="姓名" filterable="false" sortable="false"/>   			
   			<ec:column property="group" title="用户组" filterable="false" sortable="false">
   			<c:forEach items="${groupList}" var="group" >
   			<c:if test="${group.groupid==res.group}">${group.groupname}</c:if>
   			</c:forEach>
   			</ec:column>
   			<ec:column property="org" title="单位" filterable="false" sortable="false">
   			<c:forEach items="${orgList}" var="org">
   			<c:if test="${org.id==res.org}">${org.name}</c:if>
   			</c:forEach>
   			</ec:column>
   			<ec:column property="dapartment" title="部门" filterable="false" sortable="false">
   			<c:forEach items="${departmentList}" var="department">
   			<c:if test="${department.id==res.department}">${department.name}</c:if>
   			</c:forEach>
   			</ec:column>
   			<ec:column property="position" title="学科角色" filterable="false" sortable="false">
   			<c:if test="${0==res.position}">&nbsp;</c:if>
   			<c:if test="${1==res.position}">学术带头人</c:if>
   			<c:if test="${2==res.position}">学科带头人</c:if>
   			<c:if test="${3==res.position}">参与人员</c:if>
   			</ec:column>
  		</ec:row>
	</ec:table>
	</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
  </body>
</html>
